<script setup>
import Son from './components/Son.vue'
import { ref, provide } from 'vue'
const appMoney = ref(100)
const setMoney = num => {
  appMoney.value = num
}
// provide(属性名,值)
provide('xxx', appMoney)
provide('setMoney', setMoney)
</script>
<template>
  <div>
    <Son></Son>
  </div>
</template>
<style></style>
